package com.chixing.controller;


import com.chixing.service.IRoomtypeService;
import com.chixing.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import org.springframework.stereotype.Controller;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author smith
 * @since 2025-09-30
 */
@CrossOrigin
@RestController
@RequestMapping("/roomtype")
public class RoomtypeController {
    @Autowired
    private IRoomtypeService roomtypeService;

    @GetMapping("roomTypeId/{roomTypeId}")
    public Result getByIdRoomTypeDetail(@PathVariable("roomTypeId") Long roomTypeId){
        return roomtypeService.getByIdRoomTypeDetail(roomTypeId);
    }

}
